package com.example.demo.customer;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.yaml.snakeyaml.events.Event;

import java.util.Collections;
import java.util.List;

//改为接口,JpaRepository<T,ID>
@Repository
public interface CustomerRepository extends JpaRepository<Customer, Long> {

}


//public class CustomerRepository implements CustomerRepo{
//    @Override
//    public List<Customer> getCustomers(){
//        //  TODO 连接到真实的数据库
//        return Collections.singletonList(
//                new Customer(1L,"TODO,实现真实的数据库","password", "email@gmail.com")
//
//        );
//    }
//}
